package com.sinping.qh.service.admin;

import com.sinping.qh.api.support.FrontPage;
import com.sinping.qh.api.support.ResDto;
import com.sinping.qh.dto.admin.ApiBuildingDto;

import javax.servlet.http.HttpServletRequest;

/**
 * 楼宇接口
 *
 * @author Tiansx
 * @create 2018-05-29 13:41
 **/
public interface IBuildingService {
    /**
     * 添加
     * @param apiBuildingDto
     * @return
     */
    ResDto addBuilding(HttpServletRequest httpRequest, ApiBuildingDto apiBuildingDto);

    /**
     * 修改
     * @param apiBuildingDto
     * @return
     */

    ResDto updateBuilding(HttpServletRequest httpRequest,ApiBuildingDto apiBuildingDto);

    /**
     * 获取楼宇详情
     * @param id
     * @return
     */
    ResDto geteBuildingDetail(String id);

    /**
     * 删除
     * @param id
     * @return
     */

    ResDto deleteBuilding(String  id);
    /**
     * 分页查询
     */
    ResDto getBuildingListPage(FrontPage page);
    /**
     * 获取楼宇列表，不分页
     */
    ResDto getBuildingList();
}
